for i in range(9, 0, -1):
    for j in range(i, 0, -1):
        print(i, '*', j, '=', i * j, end=' ')
    print()